<div class="row">
	<div class="col-md-12">
		<!-- Custom Tabs -->
		<div class="nav-tabs-custom">
			<ul class="nav nav-tabs">
				<li>
					<a href="<?php echo base_url();?>jobseekers/welcome"> Welcome</a>
				</li>
				<li class="active">
					<a href="<?php echo base_url(); ?>jobseekers/job-alerts"> Current Rule</a>
				</li>
				<li>
					<a href="<?php echo base_url(); ?>jobseekers/new-rule">Add a New Rule </a>
				</li>		
				<li class="dropdown pull-right">
					<a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-user"/></i> <?php echo $username; ?> <span class="caret"></span> </a>
					<ul class="dropdown-menu">
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>jobseekers/change-picture">Change Picture</a>
						</li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>jobseekers/change-password">Change Password</a>
						</li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>jobseekers/view-profile">Profile</a>
						</li>
						<li role="presentation" class="divider"></li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>jobseekers/logout">Logout</a>
						</li>
					</ul>
				</li>
				
			</ul>
			<div class="tab-content">
				<div class="tab-pane active" id="tab_1">
					
<div class="box box-primary">
	<div class="box-header">
		<h4 class="box-title"><span style="color:#3C8DBC !important;">Edit Rule</span></h4>
	</div>
	
		<!-- the events -->
		<div id="external-events">
			<form role="form" class="remove-box-border" method="post" action="<?php echo base_url(); ?>jobseekers/edit-rule/<?php echo $this -> uri -> segment(3); ?>">
				<div class="box-body">
					<div class="form-group">
						<label for="location"><i class="fa fa-fw fa-file"></i> Location</label>
						<select name="location" class="form-control">
							<option value="">Location</option>
							<?php
									foreach($locations->result() as $location){
										$location_id=$location->job_location_id;
										$name=$location->name;
										
								?>
										<option value="<?php echo $location_id; ?>" <?php echo ($rule_info->row()->using_job_location_id==$location_id)? 'selected':'';?>><?php echo $name; ?></option>
								<?php
								}
								?>
						</select>
					</div>
					<div class="form-group">
						<label for="keyword"></i> Keyword</label>
						<input type="text" name="keyword" class="form-control" value="<?php echo $rule_info -> row() -> keyword; ?>" />
					</div>
					<div class="form-group">
						<label for="category"><i class="fa fa-fw fa-folder"></i> Category</label>
						<select name="category" class="form-control">
							<option value="">Category</option>
							<?php echo $categories; ?>
						</select>
					</div>
					
				</div>
				<div class="box-footer">
					<div class="">
						<button class="btn btn-primary" type="submit">
							<i class="fa fa-fw fa-save"></i> Save
						</button>
					</div>
				</div>
			</form>
		</div><!-- /.box-body -->
	
</div><!-- /. end facebook fan page -->
				</div><!-- /.tab-pane -->
				
			</div><!-- /.tab-content -->
		</div><!-- nav-tabs-custom -->
	</div><!-- /.col -->
</div>
